import request from '@/utils/request.js'

// 登录
export function loginMall(data) {
	return request({
		url: `/api/v1/user/login`,
		method: 'POST',
		data: {
			...data,
		},
	})
}
// 注册
export function registerMall(data) {
	return request({
		url: `/api/v1/user/register`,
		method: 'POST',
		data: {
			...data,
			key: 'Ek1+Ep1==Ek2+Ep2',
		},
	})
}
